package com.example.mall.search.vo;


import lombok.Data;

import java.util.List;

/**
 * 封装页面所有可能传递过来的查询条件
 * catalog3Id=225&keyword=苹果&sort=saleCount_asc&
 */
@Data
public class SearchParam {

    private String keyword;   //全文匹配关键字

    private Long catalog3Id; //三级分类id
    /**
     * sort= saleCount_asc/desc
     * sort= skuPrice_asc/desc
     * sort= hotScore_asc/desc
     *
     */
    private String sort; //排序条件

    /**
     * hasStock 是否有货
     * skuPrice 区间
     * brandId 品牌id
     * attr
     */
    private Integer hasStock; //是否有货
    private String skuPrice;  //价格区间
    private List<Long> brandId;    //品牌id
    private List<String> attrs;  //按照属性进行筛选

    private Integer pageNum;   //页码
    private Integer pageSize; //每页显示条数

}
